package com.tip.model;

public class TipData {
	public TipData(String name,String data){
		this(CLIENT,null,name,data);
	}
	
	public TipData(int flag,String data){
		this(flag,null,null,data);
	}
	
	public TipData(int flag,String tag,String name,String data){
		this.tag = tag;
		this.data = data;
		this.flag = flag;
		this.name = name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getData()
	{
		return data;
	}
	public String getName()
	{
		return name;
	}
	
	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public int getFlag() {
		return flag;
	}

	public String toString()
	{
		return "tag="+tag+"name="+name+" data="+data;
	}
	
	public String data;
	public String name;
	public String tag;
	public int flag;
	
	public static int CLIENT = 0;
	public static int SERVER = 1;
	
	
}
